/**
 * @Author: 刘严泽
 * @Date: 2019/11/6
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取盘点清单列表
export const getCheckList = params => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/getCheckList`, {
  params
});

// 获取仓库信息
export const getStorage = params => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/getStorage`, {
  params
});

// 查找所选仓库下的车辆信息
export const queryCarInfoListByStorage = params => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/queryCarInfoListByStorage`, {
  params
});

// 保存盘点单
export const saveCheckList = params => axios.post(`${SERVER.VEHICLE}/check/generateCheckBill/saveCheckList`, params);

// 取消盘点
export const cancelCheck = params => axios.post(`${SERVER.VEHICLE}/check/generateCheckBill/cancelCheck`, params);

// 获取所有选择仓库下的车信息
export const queryAllCarList = storageId => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/queryAllCarList?storageId=${storageId}`);
